import React from "react";
import { Fragment } from "react";
import {
  BrowserRouter,
  HashRouter,
  Link,
  Route,
  Routes,
} from "react-router-dom";
import App from "./App";
import Login from "./Login";
import Register from "./Register";
import List from "./List";
import Means from "./Means";
import Edit from "./Edit";
import Home from "./Home";
export default function Cms() {
  return (
    <Fragment>
      <Routes>
        <Route path="/" element={<Home />}>
          <Route path="/list" element={<List />}></Route>
          <Route path="/means" element={<Means />}></Route>
          <Route path="/edit" element={<Edit />}></Route>
          <Route path="/edit/:id" element={<Edit />}></Route>
        </Route>
        <Route path="/login" element={<Login />}></Route>
        <Route path="/register" element={<Register />}></Route>
      </Routes>
    </Fragment>
  );
}
